package com.zero.test1;

public class Doctor extends Person {
    private String title;

    public Doctor(){

    }

    public Doctor(String name, String age, String gender, String title) {
        super(name, age, gender);
        this.title = title;
    }
   public void work(){
        System.out.println(getName() + "正在做手术 ");

    }
}
